<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The HttpRequest</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httpquerystring.xlate.html">HttpQueryString::xlate</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httprequest.addcookies.html">HttpRequest::addCookies</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.httprequest" class="reference">
 <h1 class="title">The <a href="class.httprequest.html" class="classname">HttpRequest</a></h1>
 
 <div class="partintro"><p class="verinfo">(PECL pecl_http 0.7.0)</p>
  <div class="section" id="httprequest.synopsis">
   <h2 class="title">类摘要</h2>
   <div class="classsynopsis">
    <div class="ooclass"></div>
    <div class="classsynopsisinfo">
     <span class="ooclass"><strong class="classname">HttpRequest</strong></span>
     {</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.addcookies.html" class="methodname">addCookies</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$cookies</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.addheaders.html" class="methodname">addHeaders</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$headers</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.addpostfields.html" class="methodname">addPostFields</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$post_data</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.addpostfile.html" class="methodname">addPostFile</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$file</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$content_type</code><span class="initializer"> = &quot;application/x-octetstream&quot;</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.addputdata.html" class="methodname">addPutData</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$put_data</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.addquerydata.html" class="methodname">addQueryData</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$query_params</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.addrawpostdata.html" class="methodname">addRawPostData</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$raw_post_data</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.addssloptions.html" class="methodname">addSslOptions</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">void</span><span class="methodname"><a href="httprequest.clearhistory.html" class="methodname">clearHistory</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><a href="httprequest.construct.html" class="methodname">__construct</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$url</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$request_method</code><span class="initializer"> = HTTP_METH_GET</span></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
  ]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.enablecookies.html" class="methodname">enableCookies</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.getcontenttype.html" class="methodname">getContentType</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">array</span><span class="methodname"><a href="httprequest.getcookies.html" class="methodname">getCookies</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">array</span><span class="methodname"><a href="httprequest.getheaders.html" class="methodname">getHeaders</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">HttpMessage</span><span class="methodname"><a href="httprequest.gethistory.html" class="methodname">getHistory</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">int</span><span class="methodname"><a href="httprequest.getmethod.html" class="methodname">getMethod</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">array</span><span class="methodname"><a href="httprequest.getoptions.html" class="methodname">getOptions</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">array</span><span class="methodname"><a href="httprequest.getpostfields.html" class="methodname">getPostFields</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">array</span><span class="methodname"><a href="httprequest.getpostfiles.html" class="methodname">getPostFiles</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.getputdata.html" class="methodname">getPutData</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.getputfile.html" class="methodname">getPutFile</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.getquerydata.html" class="methodname">getQueryData</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.getrawpostdata.html" class="methodname">getRawPostData</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.getrawrequestmessage.html" class="methodname">getRawRequestMessage</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.getrawresponsemessage.html" class="methodname">getRawResponseMessage</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">HttpMessage</span><span class="methodname"><a href="httprequest.getrequestmessage.html" class="methodname">getRequestMessage</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.getresponsebody.html" class="methodname">getResponseBody</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">int</span><span class="methodname"><a href="httprequest.getresponsecode.html" class="methodname">getResponseCode</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">array</span><span class="methodname"><a href="httprequest.getresponsecookies.html" class="methodname">getResponseCookies</a></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$allowed_extras</code></span>
  ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">array</span><span class="methodname"><a href="httprequest.getresponsedata.html" class="methodname">getResponseData</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">mixed</span><span class="methodname"><a href="httprequest.getresponseheader.html" class="methodname">getResponseHeader</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">mixed</span><span class="methodname"><a href="httprequest.getresponseinfo.html" class="methodname">getResponseInfo</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">HttpMessage</span><span class="methodname"><a href="httprequest.getresponsemessage.html" class="methodname">getResponseMessage</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.getresponsestatus.html" class="methodname">getResponseStatus</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">array</span><span class="methodname"><a href="httprequest.getssloptions.html" class="methodname">getSslOptions</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httprequest.geturl.html" class="methodname">getUrl</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.resetcookies.html" class="methodname">resetCookies</a></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$session_only</code><span class="initializer"> = false</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">HttpMessage</span><span class="methodname"><a href="httprequest.send.html" class="methodname">send</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setbody.html" class="methodname">setBody</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$request_body_data</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setcontenttype.html" class="methodname">setContentType</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$content_type</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setcookies.html" class="methodname">setCookies</a></span>
    ([ <span class="methodparam"><span class="type">array</span> <code class="parameter">$cookies</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setheaders.html" class="methodname">setHeaders</a></span>
    ([ <span class="methodparam"><span class="type">array</span> <code class="parameter">$headers</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setmethod.html" class="methodname">setMethod</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$request_method</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setoptions.html" class="methodname">setOptions</a></span>
    ([ <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setpostfields.html" class="methodname">setPostFields</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$post_data</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setpostfiles.html" class="methodname">setPostFiles</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$post_files</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setputdata.html" class="methodname">setPutData</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$put_data</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setputfile.html" class="methodname">setPutFile</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$file</code><span class="initializer"> = &quot;&quot;</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setquerydata.html" class="methodname">setQueryData</a></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$query_data</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setrawpostdata.html" class="methodname">setRawPostData</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$raw_post_data</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.setssloptions.html" class="methodname">setSslOptions</a></span>
    ([ <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span><span class="methodname"><a href="httprequest.seturl.html" class="methodname">setUrl</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$url</code></span>
   )</div>

   }</div>
  </div>


 <div class="section" id="http.httprequest.members">
  <h2 class="title">Class Members</h2>
  <div class="section" id="http.httprequest.properties">
   <h2 class="title">属性</h2>
   <table id="http.httprequest.properties.instance" class="doctable table">
    <caption><strong>Instance Properties</strong></caption>
    
     <thead>
      <tr>
       <th>Modifiers</th>
       <th>Type</th>
       <th>Name</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>private</td>
       <td>array</td>
       <td>options</td>
       <td>request options to configure the request; see <a href="http.request.options.html" class="link">request 选项组</a></td>
      </tr>

      <tr>
       <td>private</td>
       <td>array</td>
       <td>postFields</td>
       <td>form data: <em><div class="cdata"><pre>array(&quot;fieldname&quot; =&gt; &quot;fieldvalue&quot;)</pre></div></em></td>
      </tr>

      <tr>
       <td>private</td>
       <td>array</td>
       <td>postFiles</td>
       <td>files to upload: <em><div class="cdata"><pre>array(array(&quot;name&quot; =&gt; &quot;image&quot;, &quot;file&quot; =&gt; &quot;/home/u/images/u.png&quot;, &quot;type&quot; =&gt; &quot;image/png&quot;))</pre></div></em></td>
      </tr>

      <tr>
       <td>private</td>
       <td>array</td>
       <td>responseInfo</td>
       <td>information (statistical) about the request/response; see <a href="function.http-get.html#http.request.info" class="link">请求/响应信息</a></td>
      </tr>

      <tr>
       <td>private</td>
       <td>HttpMessage</td>
       <td>responseMessage</td>
       <td>the response message</td>
      </tr>

      <tr>
       <td>private</td>
       <td>integer</td>
       <td>responseCode</td>
       <td>the numerical response code</td>
      </tr>

      <tr>
       <td>private</td>
       <td>string</td>
       <td>responseStatus</td>
       <td>the literal response status text</td>
      </tr>

      <tr>
       <td>private</td>
       <td>integer</td>
       <td>method</td>
       <td>the request method to use</td>
      </tr>

      <tr>
       <td>private</td>
       <td>string</td>
       <td>url</td>
       <td>the request url</td>
      </tr>

      <tr>
       <td>private</td>
       <td>string</td>
       <td>contentType</td>
       <td>the content type to use for raw post requests</td>
      </tr>

      <tr>
       <td>private</td>
       <td>string</td>
       <td>rawPostData</td>
       <td>raw post data</td>
      </tr>

      <tr>
       <td>private</td>
       <td>string</td>
       <td>queryData</td>
       <td>query parameters</td>
      </tr>

      <tr>
       <td>private</td>
       <td>string</td>
       <td>putFile</td>
       <td>the file to upload with a PUT request</td>
      </tr>

      <tr>
       <td>private</td>
       <td>string</td>
       <td>putData</td>
       <td>raw data to upload with a PUT request</td>
      </tr>

      <tr>
       <td>private</td>
       <td>HttpMessage</td>
       <td>history</td>
       <td>the whole request/response history if history logging is enabled</td>
      </tr>

      <tr>
       <td>public</td>
       <td>boolean</td>
       <td>recordHistory</td>
       <td>whether to enable history logging</td>
      </tr>

     </tbody>
    
   </table>

  </div>
  <div class="section" id="http.httprequest.constants">
   <h2 class="title">预定义常量</h2>
   <table class="doctable table">
    
    
     <thead>
      <tr>
       <th>Type</th>
       <th>Name</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>integer</td>
       <td>METH_GET</td>
       <td>GET request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_HEAD</td>
       <td>HEAD request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_POST</td>
       <td>POST request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_PUT</td>
       <td>PUT request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_DELETE</td>
       <td>DELETE request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_OPTIONS</td>
       <td>OPTIONS request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_TRACE</td>
       <td>TRACE request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_CONNECT</td>
       <td>CONNECT request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_PROPFIND</td>
       <td>PROPFIND request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_PROPPATCH</td>
       <td>PROPPATCH request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_MKCOL</td>
       <td>MKCOL request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_COPY</td>
       <td>COPY request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_MOVE</td>
       <td>MOVE request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_LOCK</td>
       <td>LOCK request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_UNLOCK</td>
       <td>UNLOCK request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_VERSION_CONTROL</td>
       <td>VERSION-CONTROL request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_REPORT</td>
       <td>REPORT request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_CHECKOUT</td>
       <td>CHECKOUT request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_CHECKIN</td>
       <td>CHECKIN request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_UNCHECKOUT</td>
       <td>UNCHECKOUT request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_MKWORKSPACE</td>
       <td>MKWORKSPACE request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_UPDATE</td>
       <td>UPDATE request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_LABEL</td>
       <td>LABEL request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_MERGE</td>
       <td>MERGE request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_BASELINE_CONTROL</td>
       <td>BASELINE-CONTROL request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_MKACTIVITY</td>
       <td>MKACTIVITY request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>METH_ACL</td>
       <td>ACL request method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>VERSION_1_0</td>
       <td>HTTP protocol version 1.0</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>VERSION_1_1</td>
       <td>HTTP protocol version 1.1</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>VERSION_ANY</td>
       <td>any HTTP protocol version</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>AUTH_BASIC</td>
       <td>basic authentication</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>AUTH_DIGEST</td>
       <td>digest authentication</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>AUTH_NTLM</td>
       <td>NTLM authentication</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>AUTH_GSSNEG</td>
       <td>GSS negotiate authentication</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>AUTH_ANY</td>
       <td>any authentication</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>PROXY_SOCKS4</td>
       <td>SOCKS v4 proxy</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>PROXY_SOCKS5</td>
       <td>SOCKS v5 proxy</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>PROXY_HTTP</td>
       <td>HTTP proxy</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>SSL_VERSION_TLSv1</td>
       <td>use TLS v1</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>SSL_VERSION_SSLv2</td>
       <td>use SSL v2</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>SSL_VERSION_SSLv3</td>
       <td>use SSL v3</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>SSL_VERSION_ANY</td>
       <td>use any SSL/TLS method</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>IPRESOLVE_V4</td>
       <td>resolve via IPv4 only</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>IPRESOLVE_V6</td>
       <td>resolve via IPv6 only</td>
      </tr>

      <tr>
       <td>integer</td>
       <td>IPRESOLVE_ANY</td>
       <td>use any resolving methods</td>
      </tr>

     </tbody>
    
   </table>

  </div>
 </div>
</div>












































































































































































































































































 






























































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="httprequest.addcookies.html">HttpRequest::addCookies</a> — Add cookies</li><li><a href="httprequest.addheaders.html">HttpRequest::addHeaders</a> — Add headers</li><li><a href="httprequest.addpostfields.html">HttpRequest::addPostFields</a> — Add post fields</li><li><a href="httprequest.addpostfile.html">HttpRequest::addPostFile</a> — Add post file</li><li><a href="httprequest.addputdata.html">HttpRequest::addPutData</a> — Add put data</li><li><a href="httprequest.addquerydata.html">HttpRequest::addQueryData</a> — Add query data</li><li><a href="httprequest.addrawpostdata.html">HttpRequest::addRawPostData</a> — Add raw post data</li><li><a href="httprequest.addssloptions.html">HttpRequest::addSslOptions</a> — Add ssl options</li><li><a href="httprequest.clearhistory.html">HttpRequest::clearHistory</a> — Clear history</li><li><a href="httprequest.construct.html">HttpRequest::__construct</a> — HttpRequest constructor</li><li><a href="httprequest.enablecookies.html">HttpRequest::enableCookies</a> — Enable cookies</li><li><a href="httprequest.getcontenttype.html">HttpRequest::getContentType</a> — Get content type</li><li><a href="httprequest.getcookies.html">HttpRequest::getCookies</a> — Get cookies</li><li><a href="httprequest.getheaders.html">HttpRequest::getHeaders</a> — Get headers</li><li><a href="httprequest.gethistory.html">HttpRequest::getHistory</a> — Get history</li><li><a href="httprequest.getmethod.html">HttpRequest::getMethod</a> — Get method</li><li><a href="httprequest.getoptions.html">HttpRequest::getOptions</a> — Get options</li><li><a href="httprequest.getpostfields.html">HttpRequest::getPostFields</a> — Get post fields</li><li><a href="httprequest.getpostfiles.html">HttpRequest::getPostFiles</a> — Get post files</li><li><a href="httprequest.getputdata.html">HttpRequest::getPutData</a> — Get put data</li><li><a href="httprequest.getputfile.html">HttpRequest::getPutFile</a> — Get put file</li><li><a href="httprequest.getquerydata.html">HttpRequest::getQueryData</a> — Get query data</li><li><a href="httprequest.getrawpostdata.html">HttpRequest::getRawPostData</a> — Get raw post data</li><li><a href="httprequest.getrawrequestmessage.html">HttpRequest::getRawRequestMessage</a> — Get raw request message</li><li><a href="httprequest.getrawresponsemessage.html">HttpRequest::getRawResponseMessage</a> — Get raw response message</li><li><a href="httprequest.getrequestmessage.html">HttpRequest::getRequestMessage</a> — Get request message</li><li><a href="httprequest.getresponsebody.html">HttpRequest::getResponseBody</a> — Get response body</li><li><a href="httprequest.getresponsecode.html">HttpRequest::getResponseCode</a> — Get response code</li><li><a href="httprequest.getresponsecookies.html">HttpRequest::getResponseCookies</a> — Get response cookie(s)</li><li><a href="httprequest.getresponsedata.html">HttpRequest::getResponseData</a> — Get response data</li><li><a href="httprequest.getresponseheader.html">HttpRequest::getResponseHeader</a> — Get response header(s)</li><li><a href="httprequest.getresponseinfo.html">HttpRequest::getResponseInfo</a> — Get response info</li><li><a href="httprequest.getresponsemessage.html">HttpRequest::getResponseMessage</a> — Get response message</li><li><a href="httprequest.getresponsestatus.html">HttpRequest::getResponseStatus</a> — Get response status</li><li><a href="httprequest.getssloptions.html">HttpRequest::getSslOptions</a> — Get ssl options</li><li><a href="httprequest.geturl.html">HttpRequest::getUrl</a> — Get url</li><li><a href="httprequest.resetcookies.html">HttpRequest::resetCookies</a> — Reset cookies</li><li><a href="httprequest.send.html">HttpRequest::send</a> — Send request</li><li><a href="httprequest.setbody.html">HttpRequest::setBody</a> — Set request body to send, overwriting previously set request body.</li><li><a href="httprequest.setcontenttype.html">HttpRequest::setContentType</a> — Set content type</li><li><a href="httprequest.setcookies.html">HttpRequest::setCookies</a> — Set cookies</li><li><a href="httprequest.setheaders.html">HttpRequest::setHeaders</a> — Set headers</li><li><a href="httprequest.setmethod.html">HttpRequest::setMethod</a> — Set method</li><li><a href="httprequest.setoptions.html">HttpRequest::setOptions</a> — Set options</li><li><a href="httprequest.setpostfields.html">HttpRequest::setPostFields</a> — Set post fields</li><li><a href="httprequest.setpostfiles.html">HttpRequest::setPostFiles</a> — Set post files</li><li><a href="httprequest.setputdata.html">HttpRequest::setPutData</a> — Set put data</li><li><a href="httprequest.setputfile.html">HttpRequest::setPutFile</a> — Set put file</li><li><a href="httprequest.setquerydata.html">HttpRequest::setQueryData</a> — Set query data</li><li><a href="httprequest.setrawpostdata.html">HttpRequest::setRawPostData</a> — Set raw post data</li><li><a href="httprequest.setssloptions.html">HttpRequest::setSslOptions</a> — Set ssl options</li><li><a href="httprequest.seturl.html">HttpRequest::setUrl</a> — Set URL</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httpquerystring.xlate.html">HttpQueryString::xlate</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httprequest.addcookies.html">HttpRequest::addCookies</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
